package com.ptswitch.material.service;

import java.util.List;

import com.ptswitch.material.model.security.Permission;

public interface PermissionService {

    void initPermissions();

    Permission findById(long id);

    //用于反向编辑权限
    Permission findByIdWithRoles(long id);

    List<Permission> findAll();

    List<Permission> findAllWithRoles();

    void save(Permission permission);
}
